﻿@{
    ViewData["Title"] = "生产管理系统";
}

<link href="~/css/site.css" rel="stylesheet" />
<link href="~/layui/css/layui.css" rel="stylesheet" />

<script src="~/layui/layui.js"></script>
<script src="~/js/site.js"></script>
<script src="~/lib/jquery/dist/jquery.js"></script>

<div class="layui-container" style="padding: 20px;">
    <div class="layui-row">
        <div class="layui-col-md12">
            <div class="page-header">
                <h1 class="page-title">
                    <i class="layui-icon layui-icon-home"></i>
                    生产管理系统
                </h1>
                <p class="page-subtitle">欢迎使用生产管理系统，请选择要访问的功能模块</p>
            </div>
        </div>
    </div>
    
    <!-- 功能模块导航 -->
    <div class="layui-row layui-col-space20">
        <!-- BOM管理模块 -->
        <div class="layui-col-md4">
            <div class="module-card bom-card">
                <div class="card-icon">
                    <i class="layui-icon layui-icon-template-1"></i>
                </div>
                <div class="card-content">
                    <h3>BOM管理</h3>
                    <p>管理产品物料清单、工艺流程和BOM配置</p>
                    <div class="card-actions">
                                                 <a href="/Home/GetBOM" class="layui-btn layui-btn-primary">
                             <i class="layui-icon layui-icon-template-1"></i> 进入BOM管理
                         </a>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 工单管理模块 -->
        <div class="layui-col-md4">
            <div class="module-card workorder-card">
                <div class="card-icon">
                    <i class="layui-icon layui-icon-form"></i>
                </div>
                <div class="card-content">
                    <h3>工单管理</h3>
                    <p>管理生产工单、工序安排和报工记录</p>
                    <div class="card-actions">
                        <a href="/Home/GetWorkOrder" class="layui-btn layui-btn-normal">
                            <i class="layui-icon layui-icon-form"></i> 进入工单管理
                        </a>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 产品管理模块 -->
        <div class="layui-col-md4">
            <div class="module-card product-card">
                <div class="card-icon">
                    <i class="layui-icon layui-icon-cart"></i>
                </div>
                <div class="card-content">
                    <h3>产品管理</h3>
                    <p>管理产品信息、规格参数和分类管理</p>
                    <div class="card-actions">
                        <a href="/Home/GetProductItem" class="layui-btn layui-btn-warm">
                            <i class="layui-icon layui-icon-cart"></i> 进入产品管理
                        </a>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 生产计划管理模块 -->
        <div class="layui-col-md4">
            <div class="module-card plan-card">
                <div class="card-icon">
                    <i class="layui-icon layui-icon-chart"></i>
                </div>
                <div class="card-content">
                    <h3>生产计划管理</h3>
                    <p>管理生产计划、排程安排和进度跟踪</p>
                    <div class="card-actions">
                        <a href="/Home/GetProductionPlan" class="layui-btn layui-btn-danger">
                            <i class="layui-icon layui-icon-chart"></i> 进入计划管理
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
</div>



<style>
/* 页面头部样式 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin: -20px -20px 40px -20px;
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.page-title .layui-icon {
    margin-right: 15px;
    font-size: 40px;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* 模块卡片样式 */
.module-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card-icon .layui-icon {
    padding: 20px;
    border-radius: 50%;
    color: white;
}

.bom-card .card-icon .layui-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.workorder-card .card-icon .layui-icon {
    background: linear-gradient(135deg, #5FB878 0%, #009688 100%);
}

.product-card .card-icon .layui-icon {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.plan-card .card-icon .layui-icon {
    background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
}

.card-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.card-content p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 25px 0;
    flex: 1;
}

.card-actions {
    margin-top: auto;
}



/* 响应式设计 */
@@media (max-width: 768px) {
    .layui-col-md4 {
        margin-bottom: 20px;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
}

/* 按钮样式优化 */
.layui-btn {
    border-radius: 6px;
    font-weight: 500;
}

.layui-btn-primary {
    border-color: #5FB878;
    color: #5FB878;
}

.layui-btn-primary:hover {
    background-color: #5FB878;
    border-color: #5FB878;
    color: white;
}

.layui-btn-normal {
    background-color: #5FB878;
    border-color: #5FB878;
}

.layui-btn-normal:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.layui-btn-warm {
    background-color: #FF9800;
    border-color: #FF9800;
}

.layui-btn-warm:hover {
    background-color: #F57C00;
    border-color: #F57C00;
}

.layui-btn-danger {
    background-color: #E91E63;
    border-color: #E91E63;
}

.layui-btn-danger:hover {
    background-color: #C2185B;
    border-color: #C2185B;
}
</style>
